package com.apes.fn.server.servicePlan.repository;

import com.apes.fn.crm.customerExpand.FnCustomerExpand;
import com.apes.fn.server.servicePlan.model.QuotationOrder;
import com.apes.fn.server.servicePlan.model.ServicePlan;
import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.masterdata.frame.model.Dept;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * param:zyc
 **/
public interface QuotationOrderRepository extends CustomRepository<QuotationOrder, String> {

    @Query(value = "select t from QuotationOrder t where t.sourcePlan = :sourcePlan and t.state <> :state" )
    List<QuotationOrder> findAllBySourcePlanAndStateNot(@Param("sourcePlan") String sourcePlan,@Param("state") String state);

}
